<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'displayFiles.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
</head>

<body>
<table border="0" width="90%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big" width="270"><img
			src="<%=basePath%>/img/menu/training.gif" align="absmiddle"><span
			class="big3"> 公共文件柜</span><br>
		</td>
		<td class="Big"><img src="<%=basePath%>img/file/notify_open.gif"
			align="absmiddle"><b><span class="Big1"> ${fName } </span></b><br>
		</td>
	</tr>
</table>

<c:choose>
	<c:when test="${isempty eq 'y'}">


		<table class="MessageBox" align="center" width="300">
			<tr>
				<td class="msg info">
				<div class="content" style="font-size: 12pt">该文件夹尚无文件</div>
				</td>
			</tr>
		</table>


	</c:when>
	<c:otherwise>

		<table class="TableList" width="700" align="center">
			<tr class="TableHeader" align="center">
				<td width="40">选择</td>
				<td onClick="order_by('SUBJECT','1');" style="cursor: hand;"><u>文件名称</u></td>
				<td>大小</td>
				<td onClick="order_by('SEND_TIME','1');" style="cursor: hand;"><u>发布时间</u></td>

				<td nowrap>操作</td>
			</tr>
			<c:forEach items="${file}" var="list">
				<tr class="TableLine1">
					<td>&nbsp;<input type="checkbox" name="checkb"
						value="${list.fileID }"></td>
					<td><a
						href="FileCenterServlet?action=display&fileID=${list.fileID }">${list.fileName
					}</a></td>
					<td>${list.fileSize }kb</td>
					<td align="center">${list.uploadTime }</td>

					<td align="center" nowrap><a
						href="FileCenterServlet?action=editFile&fileID=${list.fileID }">编辑</a>
					<a href="FileCenterServlet?action=delFile&fileID=${list.fileID }">删除</a>
					</td>
				</tr>

			</c:forEach>

		</table>

	</c:otherwise>
</c:choose>
</body>
</html>
